home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
clean
/
sun3.lha
/
Sun3
/
cgopt.man
< prev
next >
Wrap
Text File
|
1992-08-07
|
1KB
|
37 lines
cgopt [options] file_name
Generates an object file containing the size of the heap and stack and the
flags.
Usually cgopt is not used, because clm generates this object file. But
if you do not want to use clm, but compile using cocl, cg and the assembler
and then link using cc or ld, cgopt can be used to generate this object file.
The default sizes and flags are:
heap size = 2m, stack size = 512k, show execution times.
Options are:
-h size heapsize is 'size' bytes.
-s size stack size is 'size' bytes. (stack size of A stack on sun3)
-b basic only.
-sc show constructors.
-t show execution times.
-nt don't show execution times.
-gc show heap size after garbage collection.
-ngc don't show heap size after garbage collection.
-st show stack sizes before garbage collection.
-nst don't show stack sizes before garbage collection.
These options can also be used for applications.
To generate an application using cc, cc should be called with option -N and
the following files (in this order):
1 _startup.o
2 _system.o
3 the object file of the main module of your clean program
4 the object files of other modules of your clean program and the delta
rules used by your clean program (if any)
5 the object file generated by cgopt.
6 _reals.o and option -lm. (sun4 only)